package com.demo.controller;

import com.demo.entity.User;
import com.demo.service.UserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author KingYan
 * @date 2024/6/18
 * @apiNote
 */
@RestController
@RequestMapping("/sc")
public class UserController {


	@Resource
	UserService userService;

	@GetMapping("/getUser")
	public User getUser(@RequestParam("userId") int userId) {
		return userService.getUser(userId);
	}

}
